package com.cynteka.cyfoman.core;

import com.cynteka.cyfoman.core.IPropertyResolver;

/**
 * User: Sergey
 * Date: 01.08.11
 * Time: 20:04
 */
public class ValueObjectPropertyResolver implements IPropertyResolver {


    @Override
    public Object getProperty(Object object, String propertyName) {
        Object res = null;
        if (object instanceof IValueObject) {
            IValueObject valueObject = (IValueObject) object;
            res = valueObject.getParam(propertyName);
        }
        return res;
    }
}
